package com.yunkaweilai.android.view.dialog;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.view.View;
import android.widget.TextView;

import com.yunkaweilai.android.R;


/**
 * 支付失败
 * Created by Administrator on 2016/12/22 0022.
 */

public class PayErrorDialog extends Dialog{
    private TextView idTvContent;
    private TextView idTvRight;
    private String msg;
    public PayErrorDialog(@NonNull Context context,String msg) {
        super(context, R.style.dialog);
        this.msg = msg;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.dialog_no_time);
        idTvContent = ((TextView) findViewById(R.id.id_tv_content));
        idTvRight = ((TextView) findViewById(R.id.id_tv_right));
            idTvContent.setText(msg);
//            idTvContent.setText("支付异常，请与对方确认。");

        idTvRight.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                dismiss();
            }
        });

    }

}
